import 'package:flutter/material.dart';
import 'package:mobile_app.home.collections/collection_selection_page/presentation/theme/theme.dart';
import 'package:mobile_app.home.collections.core/core/presentation/theme/theme.dart';
import 'package:mobile_app.home.collections/single_collection_page/presentation/theme/single_collection_page_theme.dart';

class CollectionThemeProvider extends StatelessWidget {
  const CollectionThemeProvider({
    required this.brightness,
    required this.child,
    super.key,
  });

  final Brightness brightness;
  final Widget child;

  @override
  Widget build(BuildContext context) {
    return CollectionCoreTheme(
      brightness: brightness,
      child: CollectionSelectionPageTheme(
        brightness: brightness,
        child: SingleCollectionPageTheme(
          brightness: brightness,
          child: child,
        ),
      ),
    );
  }
}
